<?php 
require('Common/ConnDB.php');
require('Model.php');
class IndexModel extends Model
{
	
	public function __construct()
	{
		parent::__construct();
	}
     public function getgeshoutype()
     {
        $sql="select * from geshoutype";
        $data=$this->conn->query($sql);
        return $data;
      
     }
      public function getmusictype()
     {
        $sql="select * from musics";
        $data=$this->conn->query($sql);
        return $data;
      
     }
      public function get5hint()
     {
        $sql5="select * from geshous   order by hittimes desc  limit 4";
        $data=$this->conn->query($sql5);
        return $data;
      
     }
      public function get5down()
     {
        $sql6="select * from geshous   order by downtimes desc  limit 4";
        $data=$this->conn->query($sql6);
        return $data;
      
     }
      public function dianshiju()
     {
        $sql22="select * from geshous where tid='2' limit 6";
        $data=$this->conn->query($sql22);
        return $data;
      
     }
       public function dianying()
     {
        $sql33="select * from geshous where tid='1' limit 6";
        $data=$this->conn->query($sql33);
        return $data;
      
     }
       public function donghuapian()
     {
        $sql44="select * from geshous where tid='3' limit 6";
        $data=$this->conn->query($sql44);
        return $data;
      
     }
  
       public function yuanchuang()
     {
        $sql66="select * from geshous where tid='9' limit 6";
        $data=$this->conn->query($sql66);
        return $data;
      
     }
          public function getlist()
     {
        $tid=$_GET['tid'];
        $sql="select * from geshous where tid=$tid";
        $data=$this->conn->query($sql);
        return $data;
      
     }
     public function getcontent()
     {
        $vid=$_GET['vid'];
        $sql="select * from geshous where vid=$vid";
        $data=$this->conn->query($sql);
        return $data;
      
     }
     public function getcontent2()
     {
        $vid=$_GET['vid'];
        $sql="select * from musics where tid=$vid";
        $data=$this->conn->query($sql);
        return $data;
      
     }
     public function getcontent3()
     {
        $vid=$_GET['vid'];
        $sql="select * from albums where tid=$vid";
        $data=$this->conn->query($sql);
        return $data;
      
     }


}
	

 ?>

